<div class="articles view">
<h2><?php  echo __('Sample Article');?></h2>
	<dl class="simple-view">
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($article['Article']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Title'); ?></dt>
		<dd>
			<?php echo h($article['Article']['title']); ?>
			&nbsp;
		</dd>		
		<dt><?php echo __('Summary'); ?></dt>
		<dd>
			<?php echo h($article['Article']['summary']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Type'); ?></dt>
		<dd>
			<?php echo h($article['Article']['type']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Created'); ?></dt>
		<dd>
			<?php echo h($article['Article']['created']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Modified'); ?></dt>
		<dd>
			<?php echo h($article['Article']['modified']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Status'); ?></dt>
		<dd>
			<?php if($article['Article']['status'] == 0){echo h("Offline");}else{echo h('Online');} ?>
			&nbsp;
		</dd>
                <dt><?php echo __('File Name'); ?></dt>
		<dd>
			<?php echo (isset($article['Media'][0]['filename'])?$this->Html->link($article['Media'][0]['filename'],array('controller' => 'media', 'action' => 'viewFile', @$article['Media'][0]['id']), array('class' => 'pdf-icon')):"N/A") ?>
			&nbsp;
		</dd>
		<dt><?php echo __('User'); ?></dt>
		<dd>
			<?php echo $this->Html->link($article['User']['name'], array('controller' => 'users', 'action' => 'view', $article['User']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
